package com.ruoyi.electronicFence.mapper;

import java.util.List;

import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.enums.DataSourceType;
import com.ruoyi.electronicFence.domain.TDeviceStatus;
import org.apache.ibatis.annotations.Mapper;

/**
 * 设备状态Mapper接口
 *
 * @author sxygsj
 * @date 2024-05-17
 */
@Mapper
@DataSource(value = DataSourceType.SLAVE)
public interface TDeviceStatusMapper
{
    /**
     * 查询设备状态
     *
     * @param id 设备状态主键
     * @return 设备状态
     */
    public TDeviceStatus selectTDeviceStatusById(Long id);

    /**
     * 查询设备状态列表
     *
     * @param tDeviceStatus 设备状态
     * @return 设备状态集合
     */
    public List<TDeviceStatus> selectTDeviceStatusList(TDeviceStatus tDeviceStatus);

    /**
     * 新增设备状态
     *
     * @param tDeviceStatus 设备状态
     * @return 结果
     */
    public int insertTDeviceStatus(TDeviceStatus tDeviceStatus);

    /**
     * 修改设备状态
     *
     * @param tDeviceStatus 设备状态
     * @return 结果
     */
    public int updateTDeviceStatus(TDeviceStatus tDeviceStatus);

    /**
     * 修改设备状态
     *
     * @param tDeviceStatus 设备状态
     * @return 结果
     */
    public int synchronousUpdate(TDeviceStatus tDeviceStatus);
    /**
     * 删除设备状态
     *
     * @param id 设备状态主键
     * @return 结果
     */
    public int deleteTDeviceStatusById(Long id);

    /**
     * 批量删除设备状态
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTDeviceStatusByIds(Long[] ids);

    List<TDeviceStatus> selectTDeviceStatusHistoryList(TDeviceStatus tDeviceStatus);
}
